<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <AssemblyName>dotnet-Microsoft.XmlSerializer.Generator</AssemblyName>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <StringResourcesPath>..\..\System.Private.Xml\src\Resources\Strings.resx</StringResourcesPath>
    <StringResourcesName>FxResources.$(AssemblyName.Replace('-', '_')).SR</StringResourcesName>
    <OutputType>Exe</OutputType>
    <Nullable>disable</Nullable>
    <EnableSingleFileAnalyzer>false</EnableSingleFileAnalyzer>
    <IsPackable>true</IsPackable>
    <PackageId>$(MSBuildProjectName)</PackageId>
    <PackageReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=863421</PackageReleaseNotes>
    <PackageProjectUrl>https://go.microsoft.com/fwlink/?linkid=858594</PackageProjectUrl>
    <PackageDescription>Creates an Xml serialization assembly for types contained in an assembly in order to improve the startup performance of Xml serialization when serializing or de-serializing objects of those types using XmlSerializer.</PackageDescription>
    <!-- this assembly doesn't need to be binplaced -->
    <EnableBinPlacing>false</EnableBinPlacing>
    <IsTrimmable>false</IsTrimmable>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Sgen.cs" />
  </ItemGroup>

  <ItemGroup>
    <!-- Set an empty PackagePath to place this file in the root of the package -->
    <None Include="build\prefercliruntime"
          PackagePath=""
          Pack="true" />
    <None Include="build\Microsoft.XmlSerializer.Generator.targets"
          PackagePath="build"
          Pack="true" />
    <None Include="build\dotnet-Microsoft.XmlSerializer.Generator.runtimeconfig.json"
          PackagePath="lib\netstandard2.0"
          Pack="true" />
  </ItemGroup>

  <Import Project="GenerateThisAssemblyCs.targets" />
  <Import Project="GenerateNupkgProps.targets" />

</Project>
